import request from '../../util/axios'
import { serialize } from '../../util/util'

// 折线图统计时间/件卷数信息
export const getJianStatistics = (data, query) => {
  return request({
    url: '/yuyi-category-boot/modules/use-statistics/usestatistics/linechartjjs' + serialize(query),
    method: 'post',
    data: data
  })
}

// 折线图统计时间/人次信息
export const getPeopleStatistics = (data, query) => {
  return request({
    url: '/yuyi-category-boot/modules/use-statistics/usestatistics/linechartpersonnum' + serialize(query),
    method: 'post',
    data: data
  })
}

// 分页查询利用统计信息
export const getListStatistics = (query) => {
  return request({
    url: '/yuyi-category-boot/modules/use-statistics/usestatistics/paging1' + serialize(query),
    method: 'post'
  })
}

// 获取利用统计数据
export const getBasicData = () => {
  return request({
    url: '/yuyi-category-boot/modules/use-statistics/usestatistics',
    method: 'post'
  })
}
